package com.onlinelearn.content.service;

import com.onlinelearn.base.model.PageParams;
import com.onlinelearn.base.model.PageResult;
import com.onlinelearn.content.model.dto.AddCourseDto;
import com.onlinelearn.content.model.dto.CourseBaseInfoDto;
import com.onlinelearn.content.model.dto.EditCourseDto;
import com.onlinelearn.content.model.dto.QueryCourseParamsDto;
import com.onlinelearn.content.model.po.CourseBase;
import org.springframework.web.bind.annotation.RequestBody;

public interface CourseBaseInfoService {
    public PageResult<CourseBase> queryCourseBaseList(Long companyId,PageParams pageParams, @RequestBody QueryCourseParamsDto queryCourseParamsDto);

    CourseBaseInfoDto createCourseBase(Long companyId, AddCourseDto addCourseDto);

    public CourseBaseInfoDto getCourseBaseInfo(Long courseId);

    /**
     * @description 修改课程信息
     * @param companyId  机构id
     * @param dto  课程信息
     * @return com.xuecheng.content.model.dto.CourseBaseInfoDto
     * @author
     * @date 2022/9/8 21:04
     */
    CourseBaseInfoDto updateCourseBase(Long companyId, EditCourseDto dto);

    void deleteCourseBase(Long companyId,Long courseId);
}
